﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace WindowsGame2
{
    class MyMouse
    {
        Texture2D pointer;
        Vector2 potition;
        MouseState mouseState;

        public MyMouse(Texture2D pointer)
        {

            this.pointer = pointer;
            potition = Vector2.Zero;
        }

        public void Update()
        {
            mouseState = Mouse.GetState();
            potition.X = mouseState.X;
            potition.Y = mouseState.Y;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(pointer, potition, Color.White);
        }

    }
}
